package com.cxp.tour.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cxp.tour.common.Result;
import com.cxp.tour.entity.User;
import com.cxp.tour.mapper.UserMapper;
import com.cxp.tour.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

import javax.annotation.Resource;
import java.sql.Wrapper;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tour
 * @since 2024-12-03
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public IPage pageC(IPage<User> page){
        return userMapper.pageC(page);
    }
    @Override
    public IPage pageCC(IPage<User> page, Wrapper wrapper){
        return userMapper.pageCC(page,wrapper);
    }

//    @Override
//    public void resetPassword(User user){
//        User dbUser = userMapper.selectById(user.getNo());
//        if(dbUser == null){
//            throw new Service
//        }
//}


    //查询

}
